package 图片处理;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author zhaozeyang
 * @date 2018/11/8 17:02
 * @description
 */
public class PicRejectedExecutionHandler implements RejectedExecutionHandler {

    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
       System.out.println(executor.getPoolSize());
    }
}
